import java.util.Scanner;

public class Main1861 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int min= sc.nextInt();
        int max=sc.nextInt();
        int factor=sc.nextInt();
        for (int i=min;i<=max;i++){
            if (i%factor==0){
                System.out.println(i);
            }
        }
    }
}
